Business Keyword Modeling

Business Keyword Modeling enables you to train and publish models that can auto-populate ontology fields by identifying business keywords. Keyword identification leads to document source identification, and this enables the application to lookup for source specific information in the database. If the information is available, it is used to auto-populate the ontology fields as per the requirements. Auto-populating saves time as it is quicker than the regular OCR-and-rule based extraction and more reliable.

Note

The accuracy and reliability of the models in finding correct data depends upon how well they have been trained.

To use business keyword modeling for a given subtype of documents, the subtype must include a field of Source Name type.

To open Business Keyword Modeling page, go to the main menu, and then under TruCap+ Studio, click Business Keyword Modeling.

Following activities are involved in publishing a business keyword model:

  1. Labeling and annotating keywords (See Keyword annotation.)

  2. Publishing model (See Model metrics.)

  3. Self training the model (See Self training the model)

 

Keyword annotation

Keyword annotation refers to the activity of labelling unique words or a group of words available in the documents of the selected batch. Each word (or group of words) is further categorized under a given (or a new) category as per the requirements. (To know the purpose that keyword annotation serves, refer UWUC on this page.)

To perform keyword annotation, follow these steps:

  1. In the main menu, under TruCap+ Studio, click Business Keyword Modeling. The Keyword Annotation panel on the Business Keyword Modeling page opens.

  1. In the Keyword Annotation panel, click Select Batch to open Select Batch window.

  2. Select the required OCR Engine from the drop-down list and click Create Batch. The Create Batch window opens.

  3. Specify the details based on the field descriptions provided in the below table.

    s

    FIELD

    DESCRIPTION

    Select File*

    Link to be used to upload a single or a batch of documents (ZIP file).

    Note: As business-keyword models are most effective to process documents of same type (for example invoice) and belonging to the same source, it is prudent to select files (documents) that are of same type and belong to a common source.

    OCR Engine*

    Select the required OCR Engine from the drop-down list.

    Batch Name*

    Name of the batch that contains the documents that are to be labeled.

    Note: A batch can comprise of a single or multiple documents.

    *Fields marked with asterisks are mandatory.

  4. Click Save to create the batch. The batch appears in the Select Batch window.

  5. Select the required batch in the Select Batch window, and then click Start as shown in the below figure. The batch of documents start getting processed and a message confirming the same appears on the screen.

  6. After the batch gets processed, the documents become available in the Keyword Annotation panel. You can use the features available on the taskbar to navigate the document, or to change the size of the displayed document, or to rotate the document, or mark ROI around the unique words (see image below).

    Hover-over the above image to know about the available features.

    For each document, use to mark ROI around unique words (or group of words). As soon as you mark an ROI around a word, the word gets displayed under the WORD column in the panel. Select all such words that are unique to the document source such as SSN, PAN, telephone number, etc.

  7. After marking the relevant words in all the documents, select a category for each word under the WORD column from the respective drop-down list under the CATEGORY header. You can also create a new category if required by clicking on Add a category available in the drop-down list.

    Note:

    • To find the position of a listed word within a document, select the respective drop-down list. This will highlight the word within the document in the preview pane.

    • To create a business keyword model, an annotation should be applied to a minimum of 20 words under each category in a given batch.

    • To delete a word, use the delete icon next to the word.

    • To delete a category, go to Add Label and click on icon corresponding to the Master Label name. To edit a master label name click on icon corresponding to the Master Label name.

  8. To save the keyword annotations for a given document, click above the preview panel. A success message will briefly appear on the page after annotations are saved.

  9. After you have saved the keyword annotations for the required documents in a batch, select Review to review the list of annotated keywords. The Review window will open, in which the annotations provided and their count is displayed.

    Note:

    A category will be flagged by a red mark if the count of words under it is less than 20. For model training, all the selected categories should have 20 or more words under them.

    To include or exclude specific categories in the model, use the inverted arrow next to the CATEGORY header.

  10. Click on Start Training. A message will appear on the screen confirming that the model is being trained. After it is trained, the model will appear under the Model Metrics panel ready to get published.

 

Model metrics

All the models that are either published or ready for being published are displayed under Model Metrics panel.

Column header descriptions

COLUMN NAME

DESCRIPTION

Batch Name

Displays the name of the given model.

Model Version

Displays the version of the given model.

OCR Engine

Displays the name of the OCR engine used.

Train Set File Count

Displays the number of files that have been used to train the given model.

Test Set File Count

Displays the number of files that were used to test the model.

Date of Publish

Displays the date when a given model was published.

F1 Score/Accuracy

Displays the accuracy results (in %) based on the test done on the available data. (See Test Set File Count column header.)

Class Name

Displays the class name to which the model is associated.

Status

Displays the current status of the batch.

Note

Click to display the number of annotations set that are categorized based on their type, say as SSN, PAN, invoice, etc. A Model Information pop-up showing the percentage and total number of annotations set is displayed (see below image).

An ideal ML model must have an equal number of annotations set in each class for better accuracy. If not, then the model is treated as imbalanced. Depending on the accuracy, the status messages such as Balanced data, Low imbalance, and Highly imbalanced for the model are displayed. To know more about the status message, See example: ClosedIf there are 3 classes defined for an ML model, then the percentage should be ideally 33.33% (100/3) in the case of 3 classes. Depending on the following criteria, the status messages are displayed.
If the percentage is + or -5 — Balanced data
If the percentage is + or -10 — Low imbalance
If the percentage is + or -20 — Highly imbalanced

To publish models available in the panel, select them using the relevant filters next to each column header, and then click Publish. All the unpublished models available in the panel will get published.

Publishing a model

Publishing a model means to make it available to the application for use in processing the documents. Published models are applied for processing one-by-one starting from the earliest version (1.00) available to the latest until one of them provides a result. MoreClosedIn actual scenario, before the published models are applied for processing a document, one more model called the base model is applied. It is an in-built model that can be customized before or after the application is installed.

 

 

Note:

Removing a ML model is a permanent action, and once removed, the model cannot be recovered. If needed in the future, you'll have to either re-publish or re-train the model according to your requirements.

To remove a published model, follow these steps:

  1. Access the Model Information page. This page provides a comprehensive overview of all the trained ML models available.

  1. On the Model Information page, under the Custom tab, identify and find the UWUC ML model you wish to remove. Utilize the Search field to filter and find specific records within the displayed grid (Refer searching data).

  2. Click under Action column corresponding to the UWUC ML model to remove the ML model. A Attention window opens.

  3. Click Yes to permanently remove the ML model from the list. You can view the removed model on the Model Metrics page.

 

Re-publishing a model is a crucial step in ensuring that the latest improvements or modifications are reflected in its performance.

Note:

Before initiating the re-publishing process, carefully review the existing details of the model and make any necessary updates to align with your desired changes.

To re-publish a model, follow these steps:

  1. On the Model Metrics page, identify the ML model that you want to re-publish. Models that are not currently published will likely be displayed as UnPublished.

  2. Select the unpublished model available in the panel, which you want to re-publish. A Publish button is visible. Utilize the Search field to filter and find specific records within the displayed grid (Refer searching data).

  3. Click Publish to re-publish the model. Once published, the status of the model changes from UnPublished to Published indicating that the re-publishing process was successful.

    You can view the published model on the Model Information page. Take a moment to review the details associated with the re-published model.

 

Self-training the model

The initiate self-learning feature of TruCap+ enables the user to self-train the application. The data for self-training the application gets generated automatically from the processed documents. Once the user initiates self-learning, all the processed documents' data gets added as a self-trained batch. The user can then annotate, train, and publish the self-trained batch.

To self-train a model, on the top-right corner of the Keyword Annotation panel, click Initiate Self Learning.